/**
 * @project readnote
 * @Title ExpostulationDAO.java
 * @author huxh
 * @date 2012-2-12
 **/
package com.readnote.expostulation.dao;

import java.util.Collection;

import com.cr.backbone.hibenate.AppBaseDAO;
import com.readnote.expostulation.model.Expostulation;
import com.readnote.user.model.User;

public interface ExpostulationDAO extends AppBaseDAO<Expostulation> {

	/**
	 * 获取最新发布的谏言，by 用户
	 * @methodDescribe
	 * @param user
	 * @return
	 * @author xianghua.hu
	 * @date 2012-3-6 下午05:18:39
	 */
	public Expostulation getExpostulationTopOneByCreateDateDesc(User user);

	/**
	 * 根据用户获取检验，根据创建时间倒序
	 * @methodDescribe
	 * @param user
	 * @return
	 * @author xianghua.hu
	 * @date 2012-5-16 
	 */
	public Collection<Expostulation> getListExpostulationByUserOrderCreateDateDesc(
			User user);
	

}
